TigoPesa All API.
This analyses the pdf and responds with the Tausi's 1d analysis, 2d analysis, 3d analysis and Affordability score both in one call. The response is in a json format.
Header Requirements
- Authorization --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/all'
-F fullname=Hussein \
-F 'file=@Tigo_4435535_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \'
Response Sample
- Status OK Response
200 OK
{
"profile": {
"name": "INOCENTSELESTIN",
"account": "255658039279",
"contacts": "[email protected]",
"company": "Tigo",
"start_date": "2024-06-01T00:00:00",
"end_date": "2024-08-21T00:00:00",
"no_of_transactions": 28,
"in_types": [
"bank_to_wallet",
"agent_deposit",
"p2p_received",
"other"
],
"out_types": [
"luku",
"p2p_sent",
"wallet_to_bank",
"bundles",
"vcn_purchases",
"agent_withdrawal",
"bill_payment",
"merchant_payment",
"masterpass",
"check_balance",
"top_up",
"other"
],
"loan_services": [
"bustisha",
"nivushe"
],
"pars_3d": {
"agent_activity": {
"debit": [
"agent_withdrawal"
],
"credit": [
"agent_deposit"
]
},
"peer_to_peer_activity": {
"debit": [
"p2p_sent"
],
"credit": [
"p2p_received"
]
},
"bank_activity": {
"debit": [
"wallet_to_bank"
],
"credit": [
"bank_to_wallet"
]
},
"loan_activity": {
"debit": [
"bustisha",
"nivushe"
]
},
"bills_activity": {
"debit": [
"bill_payment",
"luku",
"gepg",
"merchant_payment"
]
},
"other": {
"debit": [
"other"
],
"credit": [
"other"
]
}
},
"channels": {}
},
"1d_analysis": {
"initial_info": {
"account_number": "255658039279",
"first_date": "2024-06-01 00:00:00",
"last_date": "2024-08-21 00:00:00",
"total_days": 82,
"total_active_days": 22
},
"customer_profile": {
"wallet_balance": 21656.0,
"total_turnover": 657360.0,
"total_transactions": 28
},
"cash_flow_summary": {
"total_turnover": 657360.0,
"total_cashin": 301016.0,
"total_cashout": 356344.0,
"cashin_to_turnover_percentage": 45.79,
"cashin_transactions": 7,
"cashin_to_total_trans_percentage": 25.0,
"cashout_to_turnover_percentage": 54.21,
"cashout_transactions": 21,
"cashout_to_total_trans_percentage": 75.0
},
"bustisha_info": {
"total_amount_bustisha_disbursed": 0,
"max_amount_bustisha_disbursed": 0,
"number_of_bustisha_disbursements": 0,
"average_bustisha_disbursement_amount": 0,
"last_day_of_bustisha_disbursement": "N/A",
"last_bustisha_disbursement_amount": 0,
"total_amount_bustisha_repaid": 0,
"max_amount_bustisha_repaid": 0,
"number_of_bustisha_repayments": 0,
"average_bustisha_repayment_amount": 0,
"last_day_of_bustisha_repayment": "N/A",
"last_bustisha_repayment_amount": 0
},
"nivushe_info": {
"total_amount_nivushe_disbursed": 0,
"max_amount_nivushe_disbursed": 0,
"number_of_nivushe_disbursements": 0,
"average_nivushe_disbursement_amount": 0,
"last_day_of_nivushe_disbursement": "N/A",
"last_nivushe_disbursement_amount": 0,
"total_amount_nivushe_repaid": 0,
"max_amount_nivushe_repaid": 0,
"number_of_nivushe_repayments": 0,
"average_nivushe_repayment_amount": 0,
"last_day_of_nivushe_repayment": "N/A",
"last_nivushe_repayment_amount": 0
},
"bank_to_wallet": {
"total_bank_to_wallet_amount": 0.0,
"maximum_bank_to_wallet_amount": 0.0,
"no_of_bank_to_wallet_transactions": 0,
"average_bank_to_wallet_amount": 0.0,
"last_day_paid_bank_to_wallet": "N/A",
"last_bank_to_wallet_amount": 0.0
},
"agent_deposit": {
"total_agent_deposit_amount": 0.0,
"maximum_agent_deposit_amount": 0.0,
"no_of_agent_deposit_transactions": 0,
"average_agent_deposit_amount": 0.0,
"last_day_paid_agent_deposit": "N/A",
"last_agent_deposit_amount": 0.0
},
"p2p_received": {
"total_p2p_received_amount": 0.0,
"maximum_p2p_received_amount": 0.0,
"no_of_p2p_received_transactions": 0,
"average_p2p_received_amount": 0.0,
"last_day_paid_p2p_received": "N/A",
"last_p2p_received_amount": 0.0
},
"other": {
"total_other_amount": 0.0,
"maximum_other_amount": 0.0,
"no_of_other_transactions": 0,
"average_other_amount": 0.0,
"last_day_paid_other": "N/A",
"last_other_amount": 0.0
},
"luku": {
"total_luku_amount": 20400.0,
"maximum_luku_amount": 20400.0,
"no_of_luku_transactions": 1,
"average_luku_amount": 20400.0,
"last_day_paid_luku": "2024-06-02 00:00:00",
"last_luku_amount": 20400.0
},
"p2p_sent": {
"total_p2p_sent_amount": 0.0,
"maximum_p2p_sent_amount": 0.0,
"no_of_p2p_sent_transactions": 0,
"average_p2p_sent_amount": 0.0,
"last_day_paid_p2p_sent": "N/A",
"last_p2p_sent_amount": 0.0
},
"wallet_to_bank": {
"total_wallet_to_bank_amount": 0.0,
"maximum_wallet_to_bank_amount": 0.0,
"no_of_wallet_to_bank_transactions": 0,
"average_wallet_to_bank_amount": 0.0,
"last_day_paid_wallet_to_bank": "N/A",
"last_wallet_to_bank_amount": 0.0
},
"bundles": {
"total_bundles_amount": 0.0,
"maximum_bundles_amount": 0.0,
"no_of_bundles_transactions": 0,
"average_bundles_amount": 0.0,
"last_day_paid_bundles": "N/A",
"last_bundles_amount": 0.0
},
"vcn_purchases": {
"total_vcn_purchases_amount": 90404.0,
"maximum_vcn_purchases_amount": 27267.0,
"no_of_vcn_purchases_transactions": 7,
"average_vcn_purchases_amount": 12914.86,
"last_day_paid_vcn_purchases": "2024-08-01 00:00:00",
"last_vcn_purchases_amount": 7017.0
},
"agent_withdrawal": {
"total_agent_withdrawal_amount": 0.0,
"maximum_agent_withdrawal_amount": 0.0,
"no_of_agent_withdrawal_transactions": 0,
"average_agent_withdrawal_amount": 0.0,
"last_day_paid_agent_withdrawal": "N/A",
"last_agent_withdrawal_amount": 0.0
},
"bill_payment": {
"total_bill_payment_amount": 0.0,
"maximum_bill_payment_amount": 0.0,
"no_of_bill_payment_transactions": 0,
"average_bill_payment_amount": 0.0,
"last_day_paid_bill_payment": "N/A",
"last_bill_payment_amount": 0.0
},
"merchant_payment": {
"total_merchant_payment_amount": 40000.0,
"maximum_merchant_payment_amount": 10000.0,
"no_of_merchant_payment_transactions": 4,
"average_merchant_payment_amount": 10000.0,
"last_day_paid_merchant_payment": "2024-08-14 00:00:00",
"last_merchant_payment_amount": 10000.0
},
"masterpass": {
"total_masterpass_amount": 0.0,
"maximum_masterpass_amount": 0.0,
"no_of_masterpass_transactions": 0,
"average_masterpass_amount": 0.0,
"last_day_paid_masterpass": "N/A",
"last_masterpass_amount": 0.0
},
"check_balance": {
"total_check_balance_amount": 50.0,
"maximum_check_balance_amount": 50.0,
"no_of_check_balance_transactions": 1,
"average_check_balance_amount": 50.0,
"last_day_paid_check_balance": "2024-06-07 00:00:00",
"last_check_balance_amount": 50.0
},
"top_up": {
"total_top_up_amount": 0.0,
"maximum_top_up_amount": 0.0,
"no_of_top_up_transactions": 0,
"average_top_up_amount": 0.0,
"last_day_paid_top_up": "N/A",
"last_top_up_amount": 0.0
},
"transaction_channels": {},
"statement_check": {
"isvalid": true
}
},
"2d_analysis": {
"total_cash_inflow": 301016.0,
"cash_inflow": {
"bank_to_wallet": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"agent_deposit": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"p2p_received": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"other_cashin_flow": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"loan_disbursements": {
"total_amout": 0.0,
"percentage_of_total": 0.0
}
},
"total_cash_outflow": 356344.0,
"cash_outflow": {
"luku": {
"total_amout": 20400.0,
"percentage_of_total": 5.72
},
"p2p_sent": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"wallet_to_bank": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"bundles": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"vcn_purchases": {
"total_amout": 90404.0,
"percentage_of_total": 25.37
},
"agent_withdrawal": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"bill_payment": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"merchant_payment": {
"total_amout": 40000.0,
"percentage_of_total": 11.23
},
"masterpass": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"check_balance": {
"total_amout": 50.0,
"percentage_of_total": 0.01
},
"top_up": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"other_cashout_flow": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"loan_repayments": {
"total_amout": 0.0,
"percentage_of_total": 0.0
}
}
},
"3d_analysis": {
"analysis_period": {
"start_date": "June_2024",
"end_date": "August_2024"
},
"cash_flow_analysis": {
"cash_inflow": [
{
"month": "June_2024",
"amount": 100926.0,
"percentage": 33.53
},
{
"month": "July_2024",
"amount": 200044.0,
"percentage": 66.46
},
{
"month": "August_2024",
"amount": 46.0,
"percentage": 0.02
}
],
"cash_outflow": [
{
"month": "June_2024",
"amount": 98834.0,
"percentage": 27.74
},
{
"month": "July_2024",
"amount": 240493.0,
"percentage": 67.49
},
{
"month": "August_2024",
"amount": 17017.0,
"percentage": 4.78
}
]
},
"agent_activity_analysis": {
"agent_withdrawal": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"agent_deposit": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"peer_to_peer_activity_analysis": {
"p2p_sent": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"p2p_received": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"bank_activity_analysis": {
"wallet_to_bank": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"bank_to_wallet": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"loan_activity_analysis": {
"bustisha": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"nivushe": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"bills_activity_analysis": {
"bill_payment": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"luku": [
{
"month": "June_2024",
"amount": 20400.0,
"percentage": 100.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"gepg": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"merchant_payment": [
{
"month": "June_2024",
"amount": 20000.0,
"percentage": 50.0
},
{
"month": "July_2024",
"amount": 10000.0,
"percentage": 25.0
},
{
"month": "August_2024",
"amount": 10000.0,
"percentage": 25.0
}
]
},
"other_analysis": {
"other": [
{
"month": "June_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "July_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "August_2024",
"amount": 0.0,
"percentage": 0.0
}
]
}
},
"affordability_scores": {
"rank": 4,
"high": 15051.0,
"moderate": 10034.0,
"low": 5017.0
}
}